package com.example.htmlspringtest.dao;

import com.example.htmlspringtest.base.dao.BaseMapper;
import com.example.htmlspringtest.entity.oTestMenu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @BelongsProject: HTML-Spring-test
 * @BelongsPackage: com.example.htmlspringtest.dao
 * @Author: dongmufengchun
 * @CreateTime: 2022-06-19  15:35
 * @Description: 持久层：用来操作数据库
 * @Version: 1.0
 */
@Mapper
public interface MenuMapper extends BaseMapper<oTestMenu> {
    /**
     * 功能简介: 对象查询
     * @Author dongmufengchun
     * @Date 19:35 2022/6/19
     * @return java.util.List<com.example.htmlspringtest.entity.oTestMenu>
    **/
    @Override
    List<oTestMenu> list();

    /**
     * 功能简介: 保存/添加对象
     * @Author dongmufengchun
     * @Date 19:35 2022/6/19
     * @param oTestMenu 菜单实体类
     * @return int
    **/
    @Override
    int save(oTestMenu oTestMenu);

    /**
     * 功能简介: 删除
     * @Author dongmufengchun
     * @Date 19:35 2022/6/19
     * @param id 公司id
     * @return int
    **/
    @Override
    int delete(Long id);

    /**
     * 功能简介: 修改
     * @Author dongmufengchun
     * @Date 19:36 2022/6/19
     * @param oTestMenu 菜单实体类
     * @return int
    **/
    @Override
    int update(oTestMenu oTestMenu);

    /**
     * 功能简介: 根据id查询
     * @Author dongmufengchun
     * @Date 19:36 2022/6/19
     * @param id 公司id
     * @return com.example.htmlspringtest.entity.oTestMenu
    **/
    @Override
    oTestMenu findById(Long id);
}